import QtQuick 2.0
import QtQuick.Dialogs 1.0
import QtQuick.Controls 1.0
Rectangle {
    // id:cheatdialog
    width: 580
    height:400
    color: palette.window
    visible:false
    SystemPalette { id: palette1 }
    // FileDialog{
    // id: cheatdialog
    //visible:false

    // }
    Rectangle{
        id:rec
        anchors.left: parent.left
        anchors.leftMargin: 15
        anchors.top:parent.top
        anchors.topMargin: 10
        anchors.right:parent.right
        anchors.rightMargin: 15
        width: parent.width
        color:"gray"
        height: 30

        Rectangle{
            id:rec1
            color:"lightgray"
            anchors.left: parent.left
            anchors.top:parent.top
            height:parent.height
            width: 70
            radius: 2
            Text{
                text:"Enable"
                anchors.centerIn: parent
            }
        }
        Rectangle{
            id:rec2
            color:"lightgray"
            anchors.left: rec1.right
            anchors.leftMargin: 1
            anchors.top:parent.top
            height:parent.height
            width: 100
            radius: 2
            Text{
                text:"Game Genie"
                anchors.centerIn: parent
            }
        }
        Rectangle{
            id:rec3
            color:"lightgray"
            anchors.left: rec2.right
            anchors.leftMargin: 1
            anchors.top:parent.top
            height:parent.height
            width: 60
            radius: 2
            Text{
                text:"PAR"
                anchors.centerIn: parent
            }
        }
        Rectangle{
            id:rec4
            color:"lightgray"
            anchors.left: rec3.right
            anchors.leftMargin: 1
            anchors.top:parent.top
            height:parent.height
            width: 60
            radius: 2
            Text{
                text:"Raw"
                anchors.centerIn: parent
            }
        }
        Rectangle{

            color:"lightgray"
            anchors.left: rec4.right
            anchors.leftMargin: 1
            anchors.top:parent.top
            height:parent.height
            width:100
            radius:2
            Text{
                text:"Description"
                anchors.centerIn: parent
            }
        }
    }
     Rectangle{
         id:rec5
         anchors.top:rec.bottom
         anchors.left: parent.left
         anchors.leftMargin: 15
         width: rec.width
         height:200
     }
     Button{
         anchors.top:rec5.bottom
         anchors.topMargin: 10
         anchors.left: parent.left
         anchors.leftMargin: 15
         width: 100
         height: 30
         text:"Remove code"
     }
     Button{
         id:but1
         anchors.top:rec5.bottom
         anchors.topMargin: 15
         anchors.right: parent.right
         anchors.rightMargin: 10
         width: 100
         height: 30
         text:"Import…"
     }
     Button{
         id:but2
         anchors.top:but1.bottom
         anchors.topMargin: 15
         anchors.right: parent.right
         anchors.rightMargin: 10
         width: 100
         height: 30
         text:"Export…"
     }
     Button{
         id:but3
         anchors.top:but2.bottom
         anchors.topMargin: 30
         anchors.right: parent.right
         anchors.rightMargin: 10
         width: 100
         height: 30
         text:"OK"
     }

}
